<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>登录</title>
  <base th:href="@{/}">
  <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css">
  <link rel="stylesheet" href="../static/css/style.css" th:href="@{/css/style.css}"/>
</head>
<body>
<div class="container">
  <div class="row">
    <div class="col-md-6 col-md-offset-3">
      <form id="loginForm" th:action="@{/login}" th:method="post">
        <h2 class="text-left">用户登录</h2>
        <br>
        <div class="form-group">
          <label for="userId">手机号</label>
          <input type="text" class="form-control" id="userId" name="userId" required>
        </div>
        <div class="form-group">
          <label for="password">密码</label>
          <input type="password" class="form-control" id="password" name="password" required>
        </div>
        <div class="form-group">
          <label th:text="${errMsg}" class="text-danger"></label>
        </div>
        <button type="submit" class="btn btn-primary btn-block submitBtn">登录</button>
        <br>
<!--        <p class="text-center" style="margin-top: 40px">-->
<!--          没有账户？<a th:href="@{/register}">立即注册</a> |-->
<!--          <a th:href="@{/register}">忘记密码</a>-->
<!--        </p>-->
        <hr>
        <p class="text-center" style="color: #cccccc; margin-top: 10px;">登录即表示您已阅读并同意服务条款</p>
      </form>
    </div>
  </div>
</div>
</body>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</html>
